package com.rdc.qingkou.contract;

import android.content.Context;

import com.rdc.qingkou.entity.MessageNewsNumResult;
import com.rdc.qingkou.entity.MessageResult;
import com.rdc.qingkou.model.imodel.OnHttpCallBack;

/**
 * Created by WaxBerry on 2017/9/26.
 */

public class MessageContract {

    public interface IMessageView{

        void showBottom(int lastIndex);
        Context getCurContext();//获取上下文对象
        void showProgress();//显示进度条
        void hideProgress();//隐藏进度条
        void showData(MessageResult messageResult);//显示数据到View上
        void showInfo(String info);//提示用户,提升友好交互
        void showUnReadNum(MessageNewsNumResult messageNewsNumResult);   //显示未读信息数目
        void showMoreMessage(MessageResult messageResult);  //获得更多信息
        void updateNews();
    }

    public interface IMessageModel {

        void getUnReadNewsNum(Integer userId,OnHttpCallBack<MessageNewsNumResult> callBack);
        void getMessage(Integer userId,Integer currentPage,OnHttpCallBack<MessageResult> callBack);
        void getMoreMessage(Integer userId,Integer currentPage,OnHttpCallBack<MessageResult> callBack);
        void getUpdateNews(Integer userId);
    }

    public interface IMessagePresenter {

        void getUnReadNewsNum(Integer userId);  //获取未读信息数目
        void getMessage(Integer userId,Integer currentPage); //获取信息
        void loadMoreMessage(Integer userId,Integer currentPage);  //加载更多
        void getUpdateNews();  //
    }
}
